# -*- coding:utf-8 -*-
# @Time:2023/11/24 21:36
# @Author: cevent
# @name=urls

from django.conf.urls import url
from . import views

'''
申明本子应用的app_name，否则在主urls中引入oauth报错
不要加入带特殊符号的内容，否则会报错
'''

app_name = 'oauth'

urlpatterns = [
    # 获取QQ登录页面
    url(r'^qq/login/$', views.QQAuthUrlView.as_view(), name='qqLoginUrl'),
    # 获取QQ登录回调
    url(r'^oauth_callback/$',views.QQAuthLoginView.as_view(), name='qqLoginCallback'),
    # 保存openid和userid
    url(r'^oauth_save/$',views.QQOauthSaveView.as_view(),name='qqOauthSave')

]
